<?php
namespace App\Model;

use PhalApi\Model\NotORMModel as NotORM;

class Carves extends NotORM {
    public function store($data) {
        $orm = $this->getORM();
        $orm->insert($data);
        $id = $orm->insert_id();
        $arr = $this->getORM()->where('id', $id)->fetchOne();
        return $arr['photo'];
    }
}